<%@ page language="java" import="java.util.*,base.*,pojo.*,service.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
  <head>
    <title>阜阳白金汉宫网上订餐</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
    <link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
	 <link href="../bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
	 <link href="../bootstrap/css/commom.css" />
	 
<style type="text/css">

.STYLE1 {font-size: 18px}
.STYLE2 {font-size: 24px}
 * { margin:0; padding:0; }
body { background:#FFF; color:#333; font:12px/1.6em Helvetica, Arial, sans-serif; }
a { color:#0287CA; text-decoration:none; }
a:hover { text-decoration:underline; }
ul, li { list-style:none; }
fieldset, img { border:none; }
legend { display:none; }
em, strong, cite, th { font-style:normal; font-weight:normal; }
input, textarea, select, button { font:12px Helvetica, Arial, sans-serif; }
html { overflow:-moz-scrollbars-vertical; } 
#leftpanel{width:200px;border:1px solid #CDC9C9;overflow:hidden;margin-right:5px;background-color:#fff;left:2px;bottom:5px;position:absolute;top:77px;}
#leftpanel ul li {list-style-type:none;padding:7px 0;width:100px;margin-bottom:20px;}
#leftpanel li a {display:block;line-height:14px;}
#leftpanel li a:hover {text-decoration:none;color:#7D26CD;} 
#leftpanel ul li.selected {font-weight:bold;width:22px;padding:9px 0;border:solid #7D26CD;border-width:5px 0;border-left:6px solid #7D26CD;background:#fff;margin-left:5px;border-right:1px solid #fff;}
#leftpanel ul li.selected a:link,#nav_class ul li.selected a:visited{color:#7D26CD;}
#main{border:1px solid #CDC9C9;overflow:hidden;left:235px;bottom:5px;position:absolute;top:77px;right:5px;}
#main iframe{position:absolute;bottom:0; height: 100%;width:100%;}
</style>
    <script type="text/javascript" src="${pageContext.request.contextPath }/jquery/jquery-1.7.2.min.js"></script>
</head>
  <body>
   <div class="navbar navbar-inverse navbar-fixed-top">
       <div class="navbar-inner">
           <div class="container-fluid">
   <a class="brand" href="index.jsp">白金汉宫网上订餐</a>
       <div class="nav-collapse collapse">
<ul class="nav">
<li class="active">
<a href="index.jsp">主页</a>
</li>

</ul>
<p class="navbar-text pull-right">
<%
        
		String username = (String)session.getAttribute( "name" );
		CartService cs= new CartService();
		if ( username == null || username == "" )
		{
%>
<a class="navbar-link" href="login.jsp">登录</a>&nbsp;&nbsp;&nbsp;<a class="navbar-link" href="regest.jsp">注册</a>
<%
} 
		else
		{
		          int userid=(Integer)session.getAttribute("id");
		          int cartNum=cs.getALL(userid);
			         out.println( "欢迎您! "+username  );
			         out.println("<a href='memberzone.jsp' role='button' class='btn btn-success' >个人中心</a>");
			         out.println("<a href='cartlist.jsp' data-placement='bottom' role='button' class='btn btn-warning' data-toggle='tooltip' title='ffff'>我的购物车"+cartNum+"</a>");
			         out.println( "<a href='destroySession.jsp' role='button' class='btn btn-danger' >安全退出</a>" );
		}
%>
</p>
	</div>   
        </div>
           </div>
               </div>
                   <div class="container-fluid">
                         <div class="row-fluid">
                              <div id="leftpanel">
                                  <h3 style="margin-left:20px;">用户中心</h3>
                                <div>
		<ul>
			<li><div ><a href="updatePassword.jsp" target="mainiframe">修改密码</a></div></li>
			<li><div ><a href="updateInfor.jsp" target="mainiframe">修改个人信息</a></div></li>
			<li><div ><a href="myorder.jsp" target="mainiframe">我的订单</a></div></li>
			<li><div ><a href="myreview.jsp" target="mainiframe">我的点评</a></div></li>

		
		</ul>
	                     </div>
                    </div>
               </div>
 
           <div id="main">
	<iframe  src="" frameborder="0" width="100%" height="auto" scrolling="auto" name="mainiframe" id="mainiframe"></iframe>
	           </div>

                  </div>
   

   
   
    <script src="../bootstrap/js/bootstrap.js"></script>
    <script src="../bootstrap/js/bootstrap.min.js"></script>
  </body>
</html>
